<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" xml:lang="en" lang="en">
	<h:head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
		<title>系统登录</title>
		<!-- 引入自定义样式文件 -->
		<h:outputStylesheet library="css" name="commonStyle.css"  /> 
		<!-- 引入jquery文件 -->
		<script language="javascript" type="text/javascript" src="../resources/js/commonJS.js"></script>
		<script>
		<!--
			jQuery(document).ready(function(){
				ShowTime();
			});
			
			function resetQueryCondition(){
				jQuery("#loginName").val('');
				jQuery("#loginPassword").val('');
			}
		-->
		</script>
</h:head>
	<body>
		<div align="center" style="vertical-align: center">
			<h:form prependId="false" id="form">
				<p:panel>
            		<f:facet name="header">登录</f:facet>
            		<p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />  
            		<div class="dialog">
		                <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value" >
		                     <h:outputLabel for="loginName" value="用户名："/>
				    		<p:inputText id="loginName" value="#{systemAccountAction.loginName}" onkeyup="checkPassWordOnKeyUp(id,value)" style="ime-mode:disabled"/> 
				    		<h:outputLabel for="loginPassword" value="密码：" />
				    		<h:panelGrid columns="2">
					    		<p:password  id="loginPassword" value="#{systemAccountAction.loginPassword}" onkeyup="checkPassWordOnKeyUp(id,value)" style="ime-mode:disabled"/>
					    		<h5 style="color:RED;margin: 0px;padding: 0px">密码为字母和数字的组合</h5>  
				    		</h:panelGrid>
		                </h:panelGrid>
		            </div>
		        </p:panel>
		        <div class="actionButtons">
		            <p:commandButton value="登录" action="#{systemAccountAction.login}"  icon="ui-icon-search" />
				    <p:commandButton value="重置" onclick="resetQueryCondition();"/>
		        </div>
			</h:form>
		</div>
		<div id="ShowTime" style="font-family:Arial,Verdana,Sans-serif;position:absolute;bottom:0%;right: 0px" align="right"></div>
	</body>
</html>
